﻿<Window x:Class="Desktop_WPF.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="MainWindow" Height="350" Width="525" Name="wnd">
    <TabControl>
        <TabControl.Resources>
            <Style TargetType="Expander">
                <Setter Property="Background" Value="#ffd0d0d0"/>
            </Style>
        </TabControl.Resources>
        <TabItem Header="Set">
            <ScrollViewer>
                <StackPanel>
                    <Expander IsExpanded="False" Header="NumberClass">
                        <Grid Background="#FFFFFFFF">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"/>
                                <RowDefinition/>
                            </Grid.RowDefinitions>
                            <WrapPanel>
                                <WrapPanel.Resources>
                                    <Style TargetType="CheckBox">
                                        <Setter Property="Margin" Value="5,1"/>
                                    </Style>
                                </WrapPanel.Resources>
                                <CheckBox IsChecked="{Binding NumberClass.ContainsZero, ElementName=wnd, Mode=TwoWay}" Content="ContainsZero"/>
                                <CheckBox IsChecked="{Binding NumberClass.ContainsPositives, ElementName=wnd, Mode=TwoWay}" Content="ContainsPositives"/>
                                <CheckBox IsChecked="{Binding NumberClass.ContainsNegatives, ElementName=wnd, Mode=TwoWay}" Content="ContainsNegatives"/>
                                <CheckBox IsChecked="{Binding NumberClass.ContainsIntegers, ElementName=wnd, Mode=TwoWay}" Content="ContainsIntegers"/>
                                <CheckBox IsChecked="{Binding NumberClass.ContainsRationals, ElementName=wnd, Mode=TwoWay}" Content="ContainsRationals"/>
                                <CheckBox IsChecked="{Binding NumberClass.ContainsReals, ElementName=wnd, Mode=TwoWay}" Content="ContainsReals"/>
                            </WrapPanel>
                            <TextBlock FontFamily="Arial" Text="{Binding NumberClass.Text, ElementName=wnd}" Grid.Row="1" FontSize="64"/>
                        </Grid>
                    </Expander>
                </StackPanel>
            </ScrollViewer>
        </TabItem>
    </TabControl>
</Window>
